package com.paw.portal.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author Rubble
 * @since 2021-08-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_sys_user")
@ApiModel(value="SysUser对象", description="用户信息表")
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户ID")
    @TableId(value = "f_id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "登录账号")
    @TableField("f_login_name")
    private String loginName;

    @ApiModelProperty(value = "密码")
    @TableField("f_password")
    private String password;

    @ApiModelProperty(value = "盐加密")
    @TableField("f_salt")
    private String salt;

    @ApiModelProperty(value = "密码强度")
    @TableField("f_pwd_strong")
    private String pwdStrong;

    @ApiModelProperty(value = "用户昵称")
    @TableField("f_name")
    private String name;

    @ApiModelProperty(value = "手机号码")
    @TableField("f_phone")
    private String phone;

    @ApiModelProperty(value = "用户邮箱")
    @TableField("f_email")
    private String email;

    @ApiModelProperty(value = "用户性别（0：男；1：女；2：未知）")
    @TableField("f_sex")
    private Integer sex;

    @ApiModelProperty(value = "头像路径")
    @TableField("f_avatar")
    private String avatar;

    @ApiModelProperty(value = "职称")
    @TableField("f_title")
    private String title;

    @ApiModelProperty(value = "部门ID")
    @TableField("f_group_id")
    private Long groupId;

    @ApiModelProperty(value = "部门")
    @TableField("f_group_name")
    private String groupName;

    @ApiModelProperty(value = "帐号状态（1：正常；0:停用）")
    @TableField("f_status")
    private Integer status;

    @ApiModelProperty(value = "国家")
    @TableField("f_country")
    private String country;

    @ApiModelProperty(value = "省编码")
    @TableField("f_province_code")
    private String provinceCode;

    @ApiModelProperty(value = "市编码")
    @TableField("f_city_code")
    private String cityCode;

    @ApiModelProperty(value = "地址")
    @TableField("f_address")
    private String address;

    @ApiModelProperty(value = "签名")
    @TableField("f_signature")
    private String signature;

    @ApiModelProperty(value = "标签")
    @TableField("f_tags")
    private String tags;

    @ApiModelProperty(value = "微信openId")
    @TableField("f_wx_open_id")
    private String wxOpenId;

    @ApiModelProperty(value = "钉钉")
    @TableField("f_dingtalk")
    private String dingtalk;

    @ApiModelProperty(value = "密码最后更新时间")
    @TableField("f_pwd_update_date")
    private Date pwdUpdateDate;

    @ApiModelProperty(value = "最后登录IP")
    @TableField("f_login_ip")
    private String loginIp;

    @ApiModelProperty(value = "最后登录时间")
    @TableField("f_login_time")
    private Date loginTime;

    @ApiModelProperty(value = "备注")
    @TableField("f_remark")
    private String remark;

    @ApiModelProperty(value = "删除标志  1是")
    @TableField("f_del_flag")
    private Integer delFlag;

    @ApiModelProperty(value = "创建者")
    @TableField(value = "f_create_by", fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "f_create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新者")
    @TableField(value = "f_update_by", fill = FieldFill.UPDATE)
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "f_update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
